# Name:    CSimpleMsgDlg.py
# Date:    Sat Mar 27 10:42:41 CET 2010
# Purpose: Create and show simple message dialog
# Def:     CSimpleMsgDlg(msg)
# Inputs:  msg - message to be diplayed in the dialog

import gtk

####################################################################################################

class CSimpleMsgDlg(gtk.MessageDialog):
	__parentWnd = None
	__msg = None

#---------------------------------------------------------------------------------------------------

	def __init__(self, parentWindow, message):
		self.__parentWnd = parentWindow
		self.__msg = message

		super(CSimpleMsgDlg, self).__init__(self.__parentWnd, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, self.__msg)

		self.run()
		self.destroy()

####################################################################################################

